import * as THREE from "three";

function createPlane(map: THREE.Texture) {
  let geometry = new THREE.PlaneGeometry(20, 20, 32); //平面
  const material = new THREE.MeshBasicMaterial({
    color: 0x000000,
    map, // 设置纹理贴图
    side: THREE.DoubleSide,
  });
  const plane = new THREE.Mesh(geometry, material);
  return plane;
}
